<?php

namespace Core\StringHandling;

class String implements StringI {

    private $str;

    function __construct( $str ) {

        $this->str = (string) $str;

    }

    function __toString () {
        return $this->str;
    }

    public function match ( $strPattern ) {
        
    }

    public function trim ( $constExclude = null ) {
        // TODO: Use $constExclude, if set.
        return new String ( trim ( $this->str ) );
    }

}

?>
